package com.woniuxy.riskmanage.mapper;

import com.woniuxy.commons.entity.RiskRules;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RiskManageMapper {
    //查询所有规则
    public List<RiskRules>  selectAllRules(@Param("riskRules") RiskRules riskRules, @Param("pageIndex") Integer pageIndex, @Param("pageSize")Integer pageSize);

    //添加规则
    public void addRule(RiskRules riskRules);

    //修改规则
    public void updateRules(RiskRules riskRules);

    //分页数量
    public int selectRulesCountBylimit(@Param("riskRules") RiskRules riskRules);

    //根据id删除规则
    public void delectRule(int id);

}
